//
//  TootooAPIHelper.h
//  TooToo
//  接口URL管理
//
//  Created by MoHao on 14-3-5.
//  Copyright (c) 2014年 MoHao. All rights reserved.
//

#import <Foundation/Foundation.h>


//线上
#define IS_ONLINE_URL
//测试
//#define IS_BETA_URL

//线上
#ifdef IS_ONLINE_URL

#define is_Release YES

#endif

//测试
#ifdef IS_BETA_URL

#define is_Release [[NSUserDefaults standardUserDefaults]boolForKey:@"isReleaseApi"]

#endif

/*****************
 *  BaseURL End
 ****************/

//普通服务接口
//#define ServerDomain_Url                    (is_Release?@"http://184w8608n1.iok.la/bee-api":@"http://184w8608n1.iok.la/bee-api")
#define ServerDomain_Url                    (is_Release?@"http://47.93.58.201/bee-api":@"https://testapi.fbee.one/fbeeapi")


//获取区块浏览器接口
#define Etherscan_URL                       @"http://etherscan.io/address"

#define EtherAPI_URL                        @"https://api.etherscan.io/api?module=account&action=balance"

#define EtherAllTokenAPI_URL                @"https://api.ethplorer.io/getAddressInfo"



/*****************
 *  接口明细
 ****************/

/*  登录接口 */
#define login_URL                           [NSString stringWithFormat:@"%@/act/login",ServerDomain_Url]
/*  退出登录接口 */
#define logout_URL                          [NSString stringWithFormat:@"%@/member/logout",ServerDomain_Url]
/*  用户基本信息  */
#define Profile_URL                         [NSString stringWithFormat:@"%@/user/profile",ServerDomain_Url]
/*  添加钱包  */
#define WalletAdd_URL                       [NSString stringWithFormat:@"%@/user/wallet/add",ServerDomain_Url]
/*  删除钱包  */
#define WalletRemove_URL                    [NSString stringWithFormat:@"%@/user/wallet/remove",ServerDomain_Url]
/*  修改昵称  */
#define NicknameModify_URL                  [NSString stringWithFormat:@"%@/user/nickname/modify",ServerDomain_Url]
/*  获取钱包正则信息  */
#define WalletInfo_URL                    [NSString stringWithFormat:@"%@/user/wallet/remove",ServerDomain_Url]


//获取我加入的币圈
#define MyBeeGroup_URL                      [NSString stringWithFormat:@"%@/user/beegroup/list",ServerDomain_Url]
//获取推荐币圈
#define RecommendBeeGroup_URL               [NSString stringWithFormat:@"%@/beegroup/list/recommend",ServerDomain_Url]
//币圈详情  /beegroup/detail/{gid}
#define BeeGroupDetail_URL                  [NSString stringWithFormat:@"%@/beegroup/detail",ServerDomain_Url]
//币圈成员列表
#define BeeGroupMember_URL                  [NSString stringWithFormat:@"%@/beegroup/member/list",ServerDomain_Url]
//禁言
#define BeeGroupSilent_URL                  [NSString stringWithFormat:@"%@/beegroup/member/silent",ServerDomain_Url]
//移除
#define BeeGroupRemove_URL                  [NSString stringWithFormat:@"%@/beegroup/member/remove",ServerDomain_Url]
//邀请列表
#define BeeGroupInviteList_URL              [NSString stringWithFormat:@"%@/beegroup/invite/list",ServerDomain_Url]
//加入币圈
#define BeeGroupJoin_URL                    [NSString stringWithFormat:@"%@/beegroup/join",ServerDomain_Url]
//退出币圈
#define BeeGroupQuit_URL                    [NSString stringWithFormat:@"%@/beegroup/quit",ServerDomain_Url]
//录入邀请码
#define BeeGroupInviteCode_URL              [NSString stringWithFormat:@"%@/beegroup/invitation/set",ServerDomain_Url]
//获取邀请码
#define ShareInviteCode_URL                 [NSString stringWithFormat:@"%@/beegroup/share",ServerDomain_Url]
//我邀请的列表
#define BeeInviteRecord_URL                 [NSString stringWithFormat:@"%@/beegroup/invite/list",ServerDomain_Url]






//币圈话题列表
#define BeeGroupTopicList_URL               [NSString stringWithFormat:@"%@/topic/list/group",ServerDomain_Url]
#define BeeGroupCreateTopic_URL             [NSString stringWithFormat:@"%@/topic/create",ServerDomain_Url]
#define TopicCommentList_URL                [NSString stringWithFormat:@"%@/comment/list/topic",ServerDomain_Url]
#define TopicCreateCommentList_URL          [NSString stringWithFormat:@"%@//comment/topic/create",ServerDomain_Url]
#define MyTopicList_URL                     [NSString stringWithFormat:@"%@//topic/list/user",ServerDomain_Url]


//验证码
#define PicCode_URL                         [NSString stringWithFormat:@"%@/act/login/verification",ServerDomain_Url]
#define SmsCode_URL                         [NSString stringWithFormat:@"%@/act/login/smscode",ServerDomain_Url]

/*****************
 *  接口明细 End
 ****************/

#define Etherscan_URL_Code                  00001
#define EtherAPI_URL_Code                   00002
#define EtherAllTokenAPI_URL_Code           00003


#define HomeCms_Url_Code                    10000


#define login_URL_Code                      10001
#define logout_URL_Code                     10002
#define Profile_URL_Code                    10003
#define WalletAdd_URL_Code                  10004
#define WalletRemove_URL_Code               10005
#define NicknameModify_URL_Code             10006
#define WalletInfo_URL_Code                 10007

#define MyBeeGroup_URL_Code                 20001
#define RecommendBeeGroup_URL_Code          20002
#define BeeGroupDetail_URL_Code             20003
#define BeeGroupMember_URL_Code             20004
#define BeeGroupSilent_URL_Code             20005
#define BeeGroupRemove_URL_Code             20006
#define BeeGroupInviteList_URL_Code         20007
#define BeeGroupJoin_URL_Code               20008
#define BeeGroupQuit_URL_Code               20009
#define BeeGroupInviteCode_URL_Code         20010
#define ShareInviteCode_URL_Code            20011
#define BeeInviteRecord_URL_Code            20012

#define BeeGroupTopicList_URL_Code          30001
#define BeeGroupCreateTopic_URL_Code        30002
#define TopicCommentList_URL_Code           30003
#define TopicCreateCommentList_URL_Cdoe     30004
#define MyTopicList_URL_Code                30005

#define PicCode_URL_Code                    90001
#define SmsCode_URL_Code                    90002
